package com.adtech.adms.commons;

/**
 * 错误码由5位数字组成，第一位表示异常级别（1：系统异常，2：业务异常，其他：暂时保留）；
 * 第二位和第三位表示模块号（00：公共异常，01：登录， 02：系统管理， 03：数据字典，04：通用导入导出，
 * 			05：基础数据，06：规划任务，07：并网，08：前期项目， 09：前期计划， 10：前期节点配置,
 * 			11: 项目前期计划库, 12:工作流异常,13 :配置引擎）；
 * 第四位和第五位为自定义序号。
 * 异常错误码
 * @author Dormin 
 * @since 2011-11-9 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class ErrorCode {
	
	/**
	 * 配置平台
	 * 系统异常：00000-00499
	 * 业务异常：00500-00999
	 */
	public static final int DATA_DUPLICATE_SUBMIT = 500;

	/**
	 * 登录模块
	 * 系统异常：10100-10199
	 * 业务异常：20100-20199
	 */
	public static final int USER_PWD_NOT_MATCH = 20100;
	public static final int USER_NOT_ALLOWED = 20101;
	public static final int USER_LOGIN_NAME_DUPLICATE = 20102;
	public static final int USER_NOT_EXIST = 20103;

	/**
	 * 系统管理模块
	 * 系统异常：10200-10299
	 * 业务异常：20200-20299
	 */
	public static final int REGION_HAS_CHILDREN = 20204;
	public static final int REGION_HAS_COMPANY = 20205;
	public static final int TIME_LIMIT_DUPLICATE = 20206;
	public static final int DEPARTMENT_HAS_USER = 20209;
	public static final int COMPANY_HAS_DEPARTMENT = 20210;
	//public static final int NOT_SELF_CIRCLE = 20211;
	public static final int NOT_SELF_CIRCLE_COMPANY = 20212;
	public static final int NOT_SELF_CIRCLE_DEPARTMENT = 20213;
	public static final int NOT_SELF_CIRCLE_REGION = 20214;
	public static final int COMPANY_CODE_DUPLICATE = 20215;
	public static final int ROLE_HAS_USER = 20216;
	public static final int POST_HAS_USER = 20217;

	/**
	 * 数据字典模块
	 * 系统异常：10300-10399
	 * 业务异常：20300-20399
	 */
	public static final int DATA_TYPE_NOT_EXIST = 20307;
	public static final int DATA_ITEM_DUPLICATE = 20308;
	public static final int COMPANY_DUPLICATE = 2112;
	public static final int DEPARTMENT_DUPLICATE = 2113;
	public static final int POST_DUPLICATE = 2114;
	public static final int REGION_DUPLICATE = 2115;
	public static final int ROLE_DUPLICATE = 2116;
	public static final int FEATURE_DUPLICATE = 2117;
	public static final int DELETE_DATA_DIC_ERROR = 2118;
	public static final int DELETE_DATA_TARGET_ERROR = 2119;
	
	/**
	 * 基础数据
	 * 系统异常：10500-10599
	 * 业务异常：20500-20599
	 */
	public static final int FOUNDATION_JSON_ERROR = 10500;
	public static final int FOUNDATION_POWER_TCRL_FORMATTER= 20500;
	public static final int FOUNDATION_POWER_TCRLGC_FORMATTER= 20501;
	public static final int FOUNDATION_POWER_HZJD_FORMATTER= 20502;
	public static final int FOUNDATION_POWER_JSJD_FORMATTER= 20503;
	public static final int FOUNDATION_POWER_HZJD_EMPTY= 20504;
	public static final int FOUNDATION_POWER_JSJD_EMPTY= 20505;
	public static final int FOUNDATION_PUB_ERR_LINE_REF= 20506;
	public static final int FOUNDATION_SYNCHRONIZATION_ERROR= 20507;
	
	public static final int TEMPLATE_DELETE_ERROR= 20508;
	public static final int TEMPLATE_SAVE_ERROR= 20509;

	/**
	 * 规划任务
	 * 系统异常：10600-10699
	 * 业务异常：20600-20699
	 */
	public static final int PROJECT_PARENT_NOT_OVER = 20601;
	public static final int PROJECT_PARENT_NOT_EDIT = 20602;
	public static final int PROJECT_CHILD_NOT_OVER = 20603;
	public static final int PROJECT_FILE_NOT_EXIST = 20604;
	public static final int PROJECT_FILE_DOWNLOAD_ERROR = 20605;
	public static final int PROJECT_TASK_ID_ERROR = 20606;
	public static final int PROJECT_FILE_ATTCHMENT_ERROR = 20607;
	public static final int PROJECT_FILE_PAY_ERROR = 20608;
	public static final int PROJECT_ITEM_PAY_ERROR = 20609;
	/**
	 * 并网业务（电厂、用户）
	 * 系统异常：10700-10799
	 * 业务异常：20700-20799
	 */
	public static final int POWERCONSUMER_NOT_EXIST = 20701;
	public static final int POWERCONSUMER_PROJECT_NAME_DUPLICATE = 20702;
	public static final int POWERCONSUMER_FILE_NOT_EXIST = 20703;
	public static final int POWERCONSUMER_DOWNLOAD_FILE_ERROR = 20704;
	public static final int POWERCONSUMER_EXPORT_ERROR = 20705;
	public static final int POWERCONSUMER_IMPORT_ERROR = 20706;
	public static final int POWERCONSUMER_DOWNLOAD_TEMPLATE_ERROR = 20707;
	public static final int POWERCONSUMER_ELECTRIC_RAILWAY_NOT_EXIST = 20708;
	public static final int POWERCONSUMER_WORK_FLOW_ERROR = 20709;
	public static final int POWERCONSUMER_NOT_PREPROJECT = 20710;

	/**
	 * 前期项目
	 * 系统异常：10800-10899
	 * 业务异常：20800-20899
	 */
	public static final int PREPROJECT_NOT_EXIST = 20801;
	public static final int PREPROJECT_DUPLICATE = 20802;
	public static final int PREPROJECT_WORK_FLOW_ERROR = 20803;
	public static final int PREPROJECT_DOWNLOAD_TEMPLATE_ERROR = 20804;
	public static final int PREPROJECT_FILE_NOT_EXIST = 20805;
	public static final int PREPROJECT_INTO_INVESTMENT = 20806;
	public static final int PREPROJECT_LINK_ROADTIP_ERROR = 20807;
	public static final int ROADTIP_IS_NULL = 208078;
	public static final int ROADTIP_DELETE_ERROR = 208079;
	
	public static final int APPROVAL_LOCATIONSTATUS = 208080;
	public static final int APPROVAL_STUDYSTATUS = 208081;
	public static final int APPROVAL_COMPLETEENVIRONMENT = 208082;
	public static final int APPROVAL_ENVIRONMENTAPPROVAL = 208083;
	public static final int APPROVAL_COMPLETEWATER = 208084;
	public static final int APPROVAL_WATERAPPROVAL = 208085;
	public static final int APPROVAL_LOCATIONREVIEWOPINION = 208086;
	public static final int APPROVAL_TAKILAND = 208087;
	public static final int APPROVAL_SUBMITAPPROVALREPORT = 208088;
	public static final int APPROVAL_SUBMITPLANLOCATION = 208089;
	public static final int APPROVAL_LOCATIONOPINION = 208090;
	public static final int APPROVAL_SUBSTATION = 208091;
	public static final int APPROVAL_CREDIT = 208092;
	public static final int APPROVAL_AGREEAPPROVAL = 208093;
	public static final int ROADTIP = 208094;
	public static final int BATCH_DEL = 208095;
	public static final int APPROVAL_LOCATIONREVIEWOPINION_GD = 208386;
	public static final int ROADTIP_CODE = 208911;
	public static final int HPCS_PRENODE_CODE = 208912;
	public static final int SBCS_PRENODE_CODE = 208913;
	public static final int BDZYDYSCS_PRENODE_CODE = 208914;
	public static final int LOCAL_CHECKOPINIONS_CODE = 208924;
	public static final int OBTAIN_SITE_WRITTEN_COMMENTS_CODE = 208925;
	public static final int LINE_PATH_REPLY_CODE = 208926;
	
	public static final int IMPORTANT_CHECK = 208387;
	//境外
	public static final int ENERGYASSESSMENTVIEWS=208101;
	public static final int ENERGYASSESSMENTVIEWS2=208991;
	//境内
	public static final int ASSESSMENTS=208113;
	//不能进入投资计划预备库
	public static final int NOININVENT=208123;
	//可研批复、可研批准、核准上报、核准批复的规划时间做必填项校验
	public static final int PREPROJECT_SAVE=208124;
	//暂停
	public static final int PREPROJECT_STOP=208125;
	/**
	 * 可研上报监测
	 */
	public static final int STUDY_NORMALWATERLEVEL = 208111;
	public static final int HUBPATTERN = 208096;
	public static final int CONSTRUCTIONLAYOUT=208097;
	public static final int LANDRESETLEMENTRULE=208098;
	public static final int LANDRESETLEMENTPLAN=208099;
	public static final int FEASIBLEREPORTFILE=208100;
	public static final int PREPROJECTDELERRORCODE=288888;
	public static final int PREPROJECT_DEL_ERROR_CODE_PART=PREPROJECTDELERRORCODE+1;
	public static final int PREPROJECT_RESTORE_ERROR_CODE=PREPROJECT_DEL_ERROR_CODE_PART+1;
	
	public static final int GEOLOGICALHAZARDEVALUATION = 208150;
	
	public static final int EARTHQUAKESAFETYEVALUATION = 208151;
	
	public static final int  CONSTRUCTIONLANDPRESSUREOVERLYINGMINERALRESOURCES = 208152;
	
	public static final int  ENGINEERINGCONSTRUCTIONCULTURALRELICSSURVEY = 208153;
	
	public static final int  EARTHQUAKESEISMICSAFETYEVALUATION = 208154;
	
	public static final int  APPROVAL_COMPLETEENVIRONMENT_STUDY = 208155;

	public static final int  APPROVAL_ENVIRONMENTAPPROVAL_STUDY = 208156;
	
	public static final int  APPROVAL_COMPLETEWATER_STUDY = 208157;

	public static final int  APPROVAL_WATERAPPROVAL_STUDY = 208158;

	public static final int  DESIGNREPORTNODESCCESSSYSTEM = 208159;

	public static final int  ACCESSSYSTEMDESIGNAPPROVAL = 208160;

	public static final int  WATERRESOURCESASSESSMENTREPORT = 208161;
	
	public static final int  WATERPERMITAPPLICATIONFORAPPROVALOFDOCUMENTS = 208161;
	
	public static final int  WATERENGINEERINGPLANNINGREPORT = 208162;

	public static final int  WATERENGINEERINGPLANNINGCONSENTAPPROVALDOCUMENTS = 208163;

	public static final int  FLOODCONTROLEVALUATIONREPORT = 208164;
	
	public static final int  RIVERADMINISTRATIONCONSTRUCTIONPROJECTSPERMISSION = 208165;
	
	public static final int  APPROVAL_SUBSTATION_STUDY = 208166;

	public static final int  PRECONSTRUCTIONLAND = 208167;

	public static final int  ENGINEERINGSAFETYPREASSESSMENTREPORT = 208168;

	public static final int  PREEVALUATIONSAFETYWORKSRECORD = 208169;

	public static final int  STATIONSITEINVOLVESNATURERESERVEADJUSTMENT = 208170;
	
	public static final int  STATIONSITEINVOLVESSTRICTCONTROLECOLOGICALZONEADJUSTMENT= 208171;
	
	public static final int  RESERVOIRINUNDATIONANDCONSTRUCTIONLANDACQUISITIONRANGEINVESIGATIONRULES= 208172;
	public static final int  PRESENTEDBANNINGCONSTRUCTIONNOTICE= 208173;
	public static final int  PHYSICALINDICATORSFIELDSURVEY= 208174;
	public static final int  PHYSICALINDICATORSPUBLICCHECK= 208175;
	public static final int  CONFIRMPHYSICALINDICATORSANDOVERALLPROGRAMRESETTLEMENT= 208176;
	public static final int  LOCALGOVERNMENTSTOSETTHECOMPENSATIONSTANDARD= 208177;
	public static final int  THERESETTLEMENTPOINTCONSTRUCTIONSTART= 208178;
	public static final int  MUNICIPALLANDANDRESOURCESBUREAUOFLANDUSEPREEXAMINATIONOPINION= 208179;
	public static final int  FORESTRYLANDFEASIBILITYSTUDYREPORT= 208180;
	public static final int  ENGINEERINGSAFETYMONITORINGDESIGN= 208181;

	public static final int  COMPANYEVALUATIONPROJECTAPPLICATIONREPORT= 208182;
	public static final int  COMPANIESREPORTEDEVALUATIONOPINIONS= 208183;
	public static final int  OBTAINSNDRCOPINION= 208184;
	public static final int  GETSTATEEXAMINATIONANDAPPROVALOPINIONS= 208185;
	public static final int  CREATEBAG= 208187;
	public static final int  DELPREPROJECT= 208188;
	public static final int  DOUBLEBAGNAME= 208189;
	public static final int  PRE_PROJECT_CREATE_ERROR= 208186;
	
	public static final int  PRE_PROJECT_GROUP_SAVE_ERROR = 208190;
	
	
	
//	public static final int LANDRESETLEMENTPLANBEFORELANDRESETLEMENTRULE=208101;
//	public static final int LANDRESETLEMENTRULEBEFORECONSTRUCTIONLAYOUT=208102;
//	public static final int CONSTRUCTIONLAYOUTBEFOREHUBPATTERN=208103;
//	public static final int HUBPATTERNBEFORENORMALWATERLEVEL=208104;
	
	
	
	/**
	 * 前期计划
	 * 系统异常：10900-10999
	 * 业务异常：20900-20999
	 */
	public static final int PRE_PLAN_DUPLICATE = 20901;
	public static final int PRE_PLAN_CREATE_PRE_PROJECT_ERROR = 20902;
	public static final int PRE_PLAN_CREATE_ERROR = 20903;
	public static final int PRE_PLAN_ADJUSTMENT_ERROR = 20904;
	public static final int PRE_PLAN_TURNUP_ERROR = 20905;
	public static final int PRE_PLAN_CARRYDOWN_ERROR = 20906;
	public static final int PRE_PLAN_SUBMIT_ERROR = 20907;
	public static final int PRE_PLAN_BATCH_SUBMIT_ERROR = 20908;
	public static final int PRE_PLAN_BATCH_TRANSMIT_ERROR = 20909;
	public static final int PLAN_ITEM_CODE_HAS_ERROR = 20910;
	public static final int PRE_PLAN_NOT_EXIST = 20911;
	public static final int PRE_PLAN_IS_EXIST = 20912;
	public static final int PRE_PLAN_DELETE_ERROR = 20913;
	

	/**
	 * 前期节点配置
	 * 系统异常：11000-11099
	 * 业务异常：21000-21099
	 */
	public static final int CONFIGNODE_NOT_EXIST = 21001;
	public static final int CONFIGNODE_DUPLICATE = 21002;
	
	/**
	 * 项目前期计划库
	 * 系统异常：11100-11199
	 * 业务异常：21100-21199
	 */
	public static final int PREPROJECTBATCH_LIBRARY_NOT_EXIST = 21101;
	public static final int PREPROJECTBATCH_BATCH_ERROR = 21102;
	public static final int PREPROJECTBATCH_REPORT_ERROR = 21103;
	public static final int PREPROJECTBATCH_TRANSMIT_PROJECT_ERROR = 21104;
	public static final int PREPROJECTBATCH_TRANSMIT_ERROR = 21105;
	public static final int PREPROJECTBATCH_DELETE_ERROR = 21106;
	public static final int PREPROJECTBATCH_OPEN_ERROR = 21107;
	public static final int PREPROJECTBATCH_OPEN_SUBMIT_ERROR = 21108;
	public static final int PREPROJECTBATCH_OPEN_CHECK_ERROR = 21109;
	
	
	/**
	 * 工作流异常
	 * 系统异常：11200-11299
	 * 业务异常：21200-21299
	 */
	public static final int DRVIE_STATE_LOST = 21201;
	
	/**
	 * 配置引擎
	 * 系统异常：11300-11399
	 * 业务异常：21300-21399
	 */
	public static final int CONFIG_ERROR_SYSTEM = 21300;
	public static final int CONFIG_ERROR_DUPLICATE = 21301;
	public static final int CONFIG_POJO_DUPLICATE = 21302;
	public static final int CONFIG_PLANPROJECT_BATCHSURE = 21303;
	public static final int CONFIG_ERROR_EXPORT = 21304;
	public static final int CONFIG_STATSTIC_ROW_SPAN_TYPE = 21305;
	public static final int CONFIG_STATSTIC_ROW_SPAN_TYPE_DIMESION = 21306;
	public static final int CONFIG_STATSTIC_COL_SPAN_TYPE_DIMESION = 21307;
	public static final int CONFIG_STATSTIC_DIMESION_RESULT_NULL = 21308;
	public static final int CONFIG_STATSTIC_ITEM_RESULT_NULL = 21309;
	public static final int CONFIG_STATSTIC_CONFIG_ERROR = 21310;
	public static final int CONFIG_POJO_DUPLICATE_ERROR = 21311;
	
	/**
	 * 规划专题库
	 * 系统异常：11400-11499
	 * 业务异常：21400-21499
	 */
	public static final int PLAN_TASK_LIBRARY_REPORT_ERROR = 21400;
	public static final int PLAN_TASK_LIBRARY_OPEN_ERROR = 21401;
	public static final int PLAN_TASK_LIBRARY_OPEN_SUBMIT_ERROR = 21402;
	public static final int PLAN_TASK_LIBRARY_CONFIG_ENDDATE_ERROR = 21403;
	public static final int PROJECT_PROJECTAPPROVALTEXT_ERROR = 21404;
	public static final int PROJECT_REVIEW_ERROR = 21405;
	public static final int PROJECT_RESTATE = 21406;
	
	/**
	 * 数据同步
	 * 系统异常：11500-11599
	 * 业务异常：21500-21599
	 */
	public static final int SYNC_GET_NODE_KEY_ERROR = 21500;
	public static final int SYNC_ERROR = 21501;
	
	/**
	 * 导入
	 * 系统异常：11600-11699
	 * 业务异常：21600-21699
	 */
	public static final int IMPORT_FILE_ERROR = 11600;
	public static final int READ_IMPORT_FILE_FAIL = 11601;
	public static final int UPLOAD_IMPORT_FILE_FAIL = 11602;
	
	public static final int IMPORT_FILE_FORMAT_ERROR = 21600;
	public static final int IMPORT_FILE_TOO_LONG = 21601;
	public static final int IMPORT_FILE_NOT_YEAR = 21602;
	public static final int IMPORT_FILE_YEAR_MAX = 21603;
	public static final int IMPORT_FILE_YEAR_MIN = 21604;
	public static final int IMPORT_FILE_OVER_SCOPE = 21605;
	public static final int IMPORT_FILE_NOT_DATE = 21606;
	public static final int IMPORT_FILE_NOT_NULL = 21607;
	public static final int IMPORT_FILE_NOT_TARGETN = 21608;
	public static final int IMPORT_FILE_NOT_TARGET = 216089;
	public static final int IMPORT_FILE_COMPER = 216090;
	public static final int IMPORT_FILE_YEAR_SCOPE = 21610;
	public static final int IMPORT_FILE_BASE_DYDJ = 21611;
	public static final int IMPORT_FILE_BASE_JRBDZ = 21612;
	public static final int IMPORT_FILE_BASE_BZRL = 21613;
	public static final int IMPORT_FILE_BASE_ZCFH = 21614;
	public static final int IMPORT_FILE_BASE_ZDFH = 21615;
	public static final int IMPORT_FILE_BASE_ZXFH = 21616;
	public static final int IMPORT_FILE_BASE_TCSJ = 21617;
	public static final int IMPORT_FILE_DATAFORMAT_ERROR = 21618;
	
	/**
	 * 配置工具与平台对接
	 * 系统异常：11700-11799
	 * 业务异常：21700-21799
	 */
	public static final int CREATE_CLASS_ERROR = 21700;
	public static final int CREATE_HBM_ERROR = 21701;
	public static final int CREATE_TABLE_ERROR = 21702;
	public static final int CREATE_FIELD_ERROR = 21703;
	public static final int CREATE_COLUMN_ERROR = 21704;
	public static final int UPDATE_CLASS_ERROR = 21705;
	
	/**
	 * 可研批次库
	 * 系统异常：11800-11899
	 * 业务异常：21800-21899
	 */
	public static final int FEA_BATCH_TRANSMIT_ERROR = 21800;
	public static final int FEA_BATCH_RETURN_ERROR = 21801;
	public static final int FEA_BATCH_INTO_ERROR = 21802;
	public static final int FEA_BATCH_REMOVE_ERROR = 21803;
	public static final int FEA_BATCH_SUBMIT_ERROR = 21804;
	public static final int FEA_BATCH_REVIEW_ERROR = 21805;
	public static final int FEA_BATCH_APPROVAL_ERROR = 21806;
	public static final int FEA_BATCH_SAVE_ERROR = 21807;
	public static final int FEA_BATCH_INVEST_CHECK_ERROR = 21808;
	public static final int FEA_BATCH_NAME_ERROR = 21809;
	public static final int FEA_BATCH_SUBMIT_INVEST_ERROR = 21810;
	public static final int FEA_BATCH_TRANSMIT_INVEST_ERROR = 21811;
	public static final int FEA_BATCH_TRANSMIT_NO_PROJECT_ERROR = 21812;
	public static final int FEA_BATCH_REVIEW_NO_PROJECT_ERROR = 21813;
	public static final int FEA_BATCH_APPROVAL_NO_PROJECT_ERROR = 21814;
	public static final int FEA_BATCH_SUBMIT_STUDY_ERROR = 21815;
	public static final int FEA_BATCH_SUBMIT_PARENT_ERROR = 21816;
	public static final int FEA_BATCH_REVIEW_PARENT_ERROR = 21817;
	public static final int FEA_BATCH_TRANSMIT_PARENT_ERROR = 21818;
	public static final int FEA_BATCH_RETURN_APPROVAL_ERROR = 21819;
}
